package com.fxxw;

import javafx.application.Application;
import org.springframework.boot.Banner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 佛系小吴
 */
@SpringBootApplication
public class DesktopApplication implements CommandLineRunner {

    /**
     * SpringBoot 的入口，这里关闭了启动时会出现的 banner 图形
     * @param args
     * @throws Exception
     */
    public static void main(String[] args)  throws Exception{
        SpringApplication app = new SpringApplication(DesktopApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
    }


    /**
     * SpringBoot 初始化完成后立即执行该方法，在这里制定窗体程序的入口类
     * @param args
     * @throws Exception
     */
    @Override
    public void run(String... args) throws Exception {
        System.out.println("SpringBoot 桌面应用");
        Application.launch(MainApplication.class, args);

    }
}
